package com.company.project.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.company.project.mapper.MatchProjectMapper;
import com.company.project.entity.MatchProjectEntity;
import com.company.project.service.MatchProjectService;
import com.company.project.vo.resp.ProjectWithAreaDTO;


@Service("matchProjectService")
public class MatchProjectServiceImpl extends ServiceImpl<MatchProjectMapper, MatchProjectEntity> implements MatchProjectService {

	@Resource
	private MatchProjectMapper matchProjectMapper;
	
	@Override
	public void addMatchProject(MatchProjectEntity entity) {
		matchProjectMapper.insert(entity);	
	}

	@SuppressWarnings("rawtypes")
	@Override
	public IPage<ProjectWithAreaDTO> getList(Page page,String startTime,String endTime, String area, String key) {
		return matchProjectMapper.getList(page, startTime, endTime, area, key);
	}

	@SuppressWarnings("rawtypes")
	@Override
	public IPage<ProjectWithAreaDTO> getListLastDay(Page page, String startTime, String endTime, String area, String key) {
		return matchProjectMapper.getListLastDay(page, startTime, endTime, area, key);
	}

}